package com.quan.weixin.rpc.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.quan.base.common.base.dao.support.BaseMapper;
import com.quan.weixin.rpc.model.WeixinMenu;

public interface WeixinMenuMapper extends BaseMapper<WeixinMenu, Integer> {
	
	/**
	 * 查询所有根节点
	 * @return
	 */
	public List<WeixinMenu> selectRoot(@Param("orderby") String orders) ;

	/**
	 * 根据父ID查询子节点
	 * @param pid
	 * @return
	 */
	public List<WeixinMenu> selectChildren(@Param("pid") Integer pid, @Param("orderby") String orderby) ;
	
	/**
	 * 根据唯一Key值来查询菜单
	 * @param eventKey
	 * @return
	 */
	public WeixinMenu selectMenyByKey(String eventKey) ;
	
}